package com.example.zk2.net

import com.example.zk2.entity.*
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiServer {

    @POST(Cons.LOGIN_URL)
    suspend fun login(@Body body:RequestBody):UserEntityResult
    @GET(Cons.BANNER_URL)
    suspend fun banner():BannerEntityResult
    @GET(Cons.CATE_URL)
    suspend fun cate():CateEntityResult
    @GET(Cons.GOODS_URL)
    suspend fun goods(@Query("category_id")cateId:Int,@Query("currentPage")page:Int,@Query("pageSize")size:Int):GoodsEntityResult
}